<?php

namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * em_business
 * @property integer $id (主键)
 * @property string $name 公司名称
 * @property string $username 负责人
 * @property string $mobile 手机号码
 * @property string $email 邮箱
 * @property integer $status 公司状态 0禁用 1正常
 * @property string $create_time
 * @property string $update_time
 * @property string $delete_time
 * @property string $address 详细地址
 */
class Company extends Model
{
    use SoftDelete;
    
    /**
     * The connection name for the model.
     *
     * @var string|null
     */
    protected $connection = 'mysql';
    
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'em_company';
    
    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $pk = 'id';
    
    
    public static function getList()
    {
        return self::where('status', 1)->select()->toArray();
    }
    
}
